package com.web.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.web.manager.pojo.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MajorMapper extends BaseMapper<Major> {
    @Select("select * from major where id = #{id}")
    Major selectById2(Integer id2);

    @Select("select count(*) from class where belong = #{belong}")
    Integer selectType(String belong);




    @Select("select * from major where name = #{belong}")
    Major selectType2(String belong);

    @Select("select * from major where id = #{majorid}")
    Major selectByMajorid(Integer majorid);
}
